//
//  SystemHelpTools.m
//  PYWGetColor
//
//  Created by 杜文杰 on 2018/7/10.
//  Copyright © 2018年 dwj. All rights reserved.
//

#import "SystemHelpTools.h"

@implementation SystemHelpTools

- (void)systemHelpListWithTypeStr:(NSArray *(^)(NSString *))dataBlock
{
    [[AFAppDotNetAPIClient sharedClient] POST:@"interface.php?m=getarticlelist" parameters:@{@"uid":[UserModel sharedInstanced].userId,@"token":[UserModel sharedInstanced].token} progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        if ([responseObject[@"error_code"] isEqualToString:@"0"]) {
            NSArray *array = @[@""];
            dataBlock(array);
        }
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        
    }];
}
@end
